package com.hanter.downloader;

import androidx.annotation.NonNull;

public interface Delivery {

    void postProgress(@NonNull Downloader.Request request, long progress, long max);

    void postComplete(@NonNull Downloader.Request request);

    void postError(@NonNull Downloader.Request request, Response res);

    void postError(@NonNull Downloader.Request request, int err, String message);

    void postCancel(@NonNull Downloader.Request request);

}
